<% object_name = unique_object_name_for("edit_rec_todo_#{@recurring_todo.id}") -%>
var <%=object_name%> = {
  animate: function() {
    $('#edit-recurring-todo').html(<%=object_name%>.html_for_edit_form());
    $('#edit-recurring-todo').dialog( "open" );
  },
  html_for_edit_form: function() {
    return "<%= js_render('edit_form') %>";
  }
}
<%=object_name%>.animate();
